function showProGrid(curPage,orgCode,iyear,imonth){
    jQuery("#gridTable").jqGrid({
        datatype: "JSON", //将这里改为使用JSON数据
        url:'http://localhost:8080/bluefish/ds', //这是Action的请求地址
        mtype: 'POST',
        colNames:['类','款', '项','科目名称','项目名称','企业名称','预算批复年份','1','2', '3', '4',
        '5','6', '7','8','9','10','11','12', '13', '14',
        '15','16', '17','18','19','20','21','22', '23', '24',
        '25', '26', '27','28','29','30','31','32','33','34','35'],
        colModel:[
        {
            name:'lei',
            index:'lei',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'kuan',
            index:'kuan',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'xiang',
            index:'xiang',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'fun',
            index:'fun',
            width:100,
            align: 'left',
            frozen:true
        },

        {
            name:'pro',
            index:'pro',
            width:100,
            align: 'left',
            frozen:true
        },

        {
            name:'comp',
            index:'comp',
            width:60,
            align: 'center'
        },

        {
            name:'year',
            index:'year',
            width:30,
            align: 'center'
        },

        {
            name:'1',
            index:'1',
            width:100,
            align: 'right'
        },

        {
            name:'2',
            index:'2',
            width:100,
            align: 'right'
        },

        {
            name:'3',
            index:'3',
            width:100,
            align: 'right'
        },

        {
            name:'4',
            index:'4',
            width:100,
            align: 'right'
        },

        {
            name:'5',
            index:'5',
            width:100,
            align: 'right'
        },

        {
            name:'6',
            index:'6',
            width:100,
            align: 'right'
        },

        {
            name:'7',
            index:'7',
            width:100,
            align: 'right'
        },

        {
            name:'8',
            index:'8',
            width:100,
            align: 'right'
        },

        {
            name:'9',
            index:'9',
            width:100,
            align: 'right'
        },

        {
            name:'10',
            index:'10',
            width:100,
            align: 'right'
        },

        {
            name:'11',
            index:'11',
            width:100,
            align: 'right'
        },

        {
            name:'12',
            index:'12',
            width:100,
            align: 'right'
        },

        {
            name:'13',
            index:'13',
            width:100,
            align: 'right'
        },

        {
            name:'14',
            index:'14',
            width:100,
            align: 'right'
        },

        {
            name:'15',
            index:'15',
            width:50,
            align: 'right'
        },

        {
            name:'16',
            index:'16',
            width:50,
            align: 'right'
        },

        {
            name:'17',
            index:'17',
            width:50,
            align: 'right'
        },

        {
            name:'18',
            index:'18',
            width:50,
            align: 'right'
        },

        {
            name:'19',
            index:'19',
            width:50,
            align: 'right'
        },

        {
            name:'20',
            index:'20',
            width:50,
            align: 'right'
        },

        {
            name:'21',
            index:'21',
            width:50,
            align: 'right'
        },

        {
            name:'22',
            index:'22',
            width:50,
            align: 'right'
        },

        {
            name:'23',
            index:'23',
            width:50,
            align: 'right'
        },

        {
            name:'24',
            index:'24',
            width:50,
            align: 'right'
        },

        {
            name:'25',
            index:'25',
            width:50,
            align: 'right'
        },

        {
            name:'26',
            index:'26',
            width:50,
            align: 'right'
        },

        {
            name:'27',
            index:'27',
            width:50,
            align: 'right'
        },

        {
            name:'28',
            index:'28',
            width:50,
            align: 'right'
        },

        {
            name:'29',
            index:'29',
            width:50,
            align: 'right'
        },

        {
            name:'30',
            index:'30',
            width:50,
            align: 'right'
        },

        {
            name:'31',
            index:'31',
            width:50,
            align: 'right'
        },

        {
            name:'32',
            index:'32',
            width:50,
            align: 'right'
        },

        {
            name:'33',
            index:'33',
            width:50,
            align: 'right'
        },

        {
            name:'34',
            index:'34',
            width:50,
            align: 'right'
        },

        {
            name:'35',
            index:'35',
            width:50,
            align: 'right'
        }
        ],
        height: 300,
        width: 1000,
        shrinkToFit:false,//使用colModel中的width,指定列的宽度
        scroll: false,//当为true时，翻页栏被禁用，使用垂直滚动条加载数据，且在首次访问服务器端时将加载所有数据到客户端;
        //当此参数为数字时，表格只控制可见的几行，所有数据都在这几行中加载;
        pager: '#gridPager',     //分页工具栏
        imgpath: './images',    //图片存放路径
        rowNum:20,           //默认每页显示记录数
        viewrecords: true,      //是否显示行数
        rowList:[10,20,30,50,100,200],  //可调整每页显示的记录数
        loadonce:true,//如果为ture则数据只从服务器端抓取一次
        altRows:true,//设置表格是否允许行交替变色值
        caption:'项目总表',//表头名称
        postData: {
            curPage : curPage,
            orgCode : orgCode,
            iyear : iyear ,
            imonth : imonth
        }
    }
    );
    jQuery("#gridTable").jqGrid('setGroupHeaders', {
        useColSpanStyle: false,
        groupHeaders:[
        {
            startColumnName: '8',
            numberOfColumns: 7,
            titleText: iyear + '年一至本月财政资金支出数'
        },

        {
            startColumnName: '15',
            numberOfColumns: 7,
            titleText: '当年结余数'
        },

        {
            startColumnName: '21',
            numberOfColumns: 7,
            titleText: '截止' + iyear + '年本月累计结余数'
        }
        ]
    });
    jQuery("#gridTable").jqGrid('setGroupHeaders', {
        useColSpanStyle: false,
        groupHeaders:[
        {
            startColumnName: '1',
            numberOfColumns: 3,
            titleText: (iyear - 1) + '年底财政批复结余资金'
        },

        {
            startColumnName: '4',
            numberOfColumns: 3,
            titleText: iyear + '年预算数'
        },

        {
            startColumnName: '9',
            numberOfColumns: 3,
            titleText: '当年财政拨款支出'
        },

        {
            startColumnName: '12',
            numberOfColumns: 3,
            titleText: '使用以前年度结余'
        },

        {
            startColumnName: '16',
            numberOfColumns: 3,
            titleText: '基本支出'
        },

        {
            startColumnName: '19',
            numberOfColumns: 3,
            titleText: '项目支出'
        },

        {
            startColumnName: '23',
            numberOfColumns: 3,
            titleText: '基本支出'
        },

        {
            startColumnName: '26',
            numberOfColumns: 3,
            titleText: '项目支出'
        },

        {
            startColumnName: '29',
            numberOfColumns: 6,
            titleText: '原因分析'
        }
        ]
    });
    jQuery("#gridTable").jqGrid('setGroupHeaders', {
        useColSpanStyle: true,
        groupHeaders:[
        {
            startColumnName: '1',
            numberOfColumns: 1,
            titleText: '总计'
        },

        {
            startColumnName: '2',
            numberOfColumns: 1,
            titleText: '基本支出'
        },

        {
            startColumnName: '3',
            numberOfColumns: 1,
            titleText: '项目支出'
        },

        {
            startColumnName: '4',
            numberOfColumns: 1,
            titleText: '总计'
        },

        {
            startColumnName: '5',
            numberOfColumns: 1,
            titleText: '基本支出'
        },

        {
            startColumnName: '6',
            numberOfColumns: 1,
            titleText: '项目支出'
        },

        {
            startColumnName: '7',
            numberOfColumns: 1,
            titleText: '预算执行率'
        },

        {
            startColumnName: '8',
            numberOfColumns: 1,
            titleText: '合计'
        },

        {
            startColumnName: '9',
            numberOfColumns: 1,
            titleText: '小计'
        },

        {
            startColumnName: '10',
            numberOfColumns: 1,
            titleText: '基本支出'
        },

        {
            startColumnName: '11',
            numberOfColumns: 1,
            titleText: '项目支出'
        },

        {
            startColumnName: '12',
            numberOfColumns: 1,
            titleText: '小计'
        },

        {
            startColumnName: '13',
            numberOfColumns: 1,
            titleText: '基本支出'
        },

        {
            startColumnName: '14',
            numberOfColumns: 1,
            titleText: '项目支出'
        },

        {
            startColumnName: '15',
            numberOfColumns: 1,
            titleText: '合计'
        },

        {
            startColumnName: '16',
            numberOfColumns: 1,
            titleText: '小计'
        },

        {
            startColumnName: '17',
            numberOfColumns: 1,
            titleText: '结余国库'
        },

        {
            startColumnName: '18',
            numberOfColumns: 1,
            titleText: '结余本单位'
        },

        {
            startColumnName: '19',
            numberOfColumns: 1,
            titleText: '小计'
        },

        {
            startColumnName: '20',
            numberOfColumns: 1,
            titleText: '结余国库'
        },

        {
            startColumnName: '21',
            numberOfColumns: 1,
            titleText: '结余本单位'
        },

        {
            startColumnName: '22',
            numberOfColumns: 1,
            titleText: '合计'
        },

        {
            startColumnName: '23',
            numberOfColumns: 1,
            titleText: '小计'
        },

        {
            startColumnName: '24',
            numberOfColumns: 1,
            titleText: '结余国库'
        },

        {
            startColumnName: '25',
            numberOfColumns: 1,
            titleText: '结余本单位'
        },

        {
            startColumnName: '26',
            numberOfColumns: 1,
            titleText: '小计'
        },

        {
            startColumnName: '27',
            numberOfColumns: 1,
            titleText: '结余国库'
        },

        {
            startColumnName: '28',
            numberOfColumns: 1,
            titleText: '结余本单位'
        },

        {
            startColumnName: '29',
            numberOfColumns: 1,
            titleText: '合计'
        },

        {
            startColumnName: '30',
            numberOfColumns: 1,
            titleText: '预付款'
        },

        {
            startColumnName: '31',
            numberOfColumns: 1,
            titleText: '计划调整'
        },

        {
            startColumnName: '32',
            numberOfColumns: 1,
            titleText: '质保金'
        },

        {
            startColumnName: '33',
            numberOfColumns: 1,
            titleText: '净结余'
        },

        {
            startColumnName: '34',
            numberOfColumns: 1,
            titleText: '其它'
        },

        {
            startColumnName: '35',
            numberOfColumns: 1,
            titleText: '预计'+iyear+'年年底结余数'
        }
        ]
    });
    jQuery("#gridTable").jqGrid('setFrozenColumns');
}

function showFunGrid(curPage,orgCode,iyear,imonth){
    jQuery("#gridTable").jqGrid({
        datatype: "JSON", //将这里改为使用JSON数据
        url:'http://localhost:8080/bluefish/ds', //这是Action的请求地址
        //url:'#{funDataBuilderBean.json}', //这是Action的请求地址
        mtype: 'POST',
        colNames:['类','款', '项','功能科目','当年基本预算','当年项目预算','上年基本预算','上年项目预算',
        '当年基本支出','当年项目支出','上年基本支出','上年项目支出',
        '当年预算小计','当年支出小计','上年预算小计','上年支出小计'],
        colModel:[
        {
            name:'lei',
            index:'lei',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'kuan',
            index:'kuan',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'xiang',
            index:'xiang',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'fun',
            index:'fun',
            width:100,
            align: 'left',
            frozen:true
        },


        {
            name:'cby',
            index:'cby',
            width:100,
            align: 'center'
        },

        {
            name:'cxy',
            index:'cxy',
            width:100,
            align: 'center'
        },

        {
            name:'lby',
            index:'lby',
            width:100,
            align: 'right'
        },

        {
            name:'lxy',
            index:'lxy',
            width:100,
            align: 'right'
        },


        {
            name:'cbc',
            index:'cbc',
            width:100,
            align: 'right'
        },

        {
            name:'cxc',
            index:'cxc',
            width:100,
            align: 'right'
        },

        {
            name:'lbc',
            index:'lbc',
            width:100,
            align: 'right'
        },

        {
            name:'lxc',
            index:'lxc',
            width:100,
            align: 'right'
        },


        {
            name:'cbt',
            index:'cbt',
            width:100,
            align: 'right'
        },

        {
            name:'cct',
            index:'cct',
            width:100,
            align: 'right'
        },

        {
            name:'lbt',
            index:'lbt',
            width:100,
            align: 'right'
        },

        {
            name:'lct',
            index:'lct',
            width:100,
            align: 'right'
        }
        ],
        height: 300,
        width: 1000,
        shrinkToFit:false,//使用colModel中的width,指定列的宽度
        scroll: false,//当为true时，翻页栏被禁用，使用垂直滚动条加载数据，且在首次访问服务器端时将加载所有数据到客户端;
        //当此参数为数字时，表格只控制可见的几行，所有数据都在这几行中加载;
        pager: '#gridPager',     //分页工具栏
        imgpath: './images',    //图片存放路径
        rowNum:20,           //默认每页显示记录数
        viewrecords: true,      //是否显示行数
        rowList:[10,20,30,50,100,200],  //可调整每页显示的记录数
        loadonce:true,//如果为ture则数据只从服务器端抓取一次
        altRows:true,//设置表格是否允许行交替变色值
        caption:'功能科目总表',//表头名称
        postData: {
            curPage : curPage,
            orgCode : orgCode,
            iyear : iyear ,
            imonth : imonth
        }
    }
    );
    jQuery("#gridTable").jqGrid('setFrozenColumns');
}

function showBudgetStatsGrid(curPage,orgCode,iyear,imonth){
    jQuery("#gridTable").jqGrid({
        datatype: "JSON", //将这里改为使用JSON数据
        url:'http://localhost:8080/bluefish/ds', //这是Action的请求地址
        mtype: 'POST',
        colNames:['类','款', '项','功能科目','项目',
        '当年基本预算','当年项目预算','上年基本预算','上年项目预算',
        '当年预算小计','上年预算小计','预算合计'],
        colModel:[{
            name:'lei',
            index:'lei',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'kuan',
            index:'kuan',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'xiang',
            index:'xiang',
            width:30,
            align: 'center',
            frozen:true
        },

        {
            name:'fun',
            index:'fun',
            width:95,
            align: 'left',
            frozen:true
        },

        {
            name:'pro',
            index:'pro',
            width:95,
            align: 'center',
            frozen:true
        },

        {
            name:'cby',
            index:'cby',
            width:100,
            align: 'center'
        },

        {
            name:'cxy',
            index:'cxy',
            width:100,
            align: 'center'
        },

        {
            name:'lby',
            index:'lby',
            width:100,
            align: 'right'
        },

        {
            name:'lxy',
            index:'lxy',
            width:100,
            align: 'right'
        },

        {
            name:'cbt',
            index:'cbt',
            width:100,
            align: 'right'
        },

        {
            name:'lbt',
            index:'lbt',
            width:100,
            align: 'right'
        },

        {
            name:'at',
            index:'at',
            width:100,
            align: 'right'
        }
        ],
        height: 300,
        width: 1000,
        shrinkToFit:false,//使用colModel中的width,指定列的宽度
        scroll: false,//当为true时，翻页栏被禁用，使用垂直滚动条加载数据，且在首次访问服务器端时将加载所有数据到客户端;
        //当此参数为数字时，表格只控制可见的几行，所有数据都在这几行中加载;
        pager: '#gridPager',     //分页工具栏
        imgpath: './images',    //图片存放路径
        rowNum:20,           //默认每页显示记录数
        viewrecords: true,      //是否显示行数
        rowList:[10,20,30,50,100,200],  //可调整每页显示的记录数
        loadonce:true,//如果为ture则数据只从服务器端抓取一次
        altRows:true,//设置表格是否允许行交替变色值
        caption:'预算小计',//表头名称
        postData: {
            curPage : curPage,
            orgCode : orgCode,
            iyear : iyear ,
            imonth : imonth
        }
    });
    jQuery("#gridTable").jqGrid('setFrozenColumns');
}